package com.zyb.base.query;

import lombok.Data;

@Data
public class BaseQuery {
//    起始页
    private Integer currentPage = 1;
//    每页展示条数
    private Integer pageSize = 5;
//    每一页从那条开始
    public Integer getStart(){
        return (currentPage - 1) * pageSize;
    }
//  关键字查询
    private String keyword;
}
